package java8_31;

/**
 * @author oldliu
 * @since 1.0
 */
public class USBMouse implements USB {
    private String brand,color;

    public USBMouse(String brand, String color) {
        this.brand = brand;
        this.color = color;
    }

    public void move(){
        System.out.println(brand+"鼠标在屏幕上移动，寻找目标");
    }

    @Override
    public void plug() {
        System.out.println("颜色是"+color+",品牌是"+brand+"的鼠标接上了电脑，可以控制了！");
    }

    @Override
    public void unplug() {
        System.out.println("颜色是"+color+",品牌是"+brand+"的鼠标从电脑上拔出，鼠标不能控制了！");
    }

    @Override
    public String toString() {
        return "颜色是"+color+",品牌是"+brand+"的鼠标";
    }
}
